﻿using Core.Framework;
using iTool.ClusterComponent;
using System.Threading.Tasks;

namespace Grain.Interfaces
{
    /// <summary>
    /// 运行云函数
    /// </summary>
    public interface ICloudRunningFunctionService : iToolServiceWithStringKey
    {
        Task<FunctionResult<dynamic>> Invoke(string channel, params object[] args);

        Task<FunctionResult<dynamic>> InvokeExport(string channel, string exportedFunctionName, params object[] args);

        Task<string> GetFunctionModulePath();


    }
}
